/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race Black Or African American Member1</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getRaceBlackOrAfricanAmericanMember1()
 * @model extendedMetaData="name='RaceBlackOrAfricanAmerican_._member_._1'"
 * @generated
 */
public enum RaceBlackOrAfricanAmericanMember1 implements Enumerator {
	/**
	 * The '<em><b>20545</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20545_VALUE
	 * @generated
	 * @ordered
	 */
	_20545(0, "_20545", "2054-5"),

	/**
	 * The '<em><b>20586</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20586_VALUE
	 * @generated
	 * @ordered
	 */
	_20586(1, "_20586", "2058-6"),

	/**
	 * The '<em><b>20677</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20677_VALUE
	 * @generated
	 * @ordered
	 */
	_20677(2, "_20677", "2067-7"),

	/**
	 * The '<em><b>20685</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20685_VALUE
	 * @generated
	 * @ordered
	 */
	_20685(3, "_20685", "2068-5"),

	/**
	 * The '<em><b>20560</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20560_VALUE
	 * @generated
	 * @ordered
	 */
	_20560(4, "_20560", "2056-0"),

	/**
	 * The '<em><b>20701</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20701_VALUE
	 * @generated
	 * @ordered
	 */
	_20701(5, "_20701", "2070-1"),

	/**
	 * The '<em><b>20693</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20693_VALUE
	 * @generated
	 * @ordered
	 */
	_20693(6, "_20693", "2069-3"),

	/**
	 * The '<em><b>20719</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20719_VALUE
	 * @generated
	 * @ordered
	 */
	_20719(7, "_20719", "2071-9"),

	/**
	 * The '<em><b>20727</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20727_VALUE
	 * @generated
	 * @ordered
	 */
	_20727(8, "_20727", "2072-7"),

	/**
	 * The '<em><b>20735</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20735_VALUE
	 * @generated
	 * @ordered
	 */
	_20735(9, "_20735", "2073-5"),

	/**
	 * The '<em><b>20743</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20743_VALUE
	 * @generated
	 * @ordered
	 */
	_20743(10, "_20743", "2074-3"),

	/**
	 * The '<em><b>20750</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20750_VALUE
	 * @generated
	 * @ordered
	 */
	_20750(11, "_20750", "2075-0");

	/**
	 * The '<em><b>20545</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20545</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20545
	 * @model literal="2054-5"
	 * @generated
	 * @ordered
	 */
	public static final int _20545_VALUE = 0;

	/**
	 * The '<em><b>20586</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20586</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20586
	 * @model literal="2058-6"
	 * @generated
	 * @ordered
	 */
	public static final int _20586_VALUE = 1;

	/**
	 * The '<em><b>20677</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20677</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20677
	 * @model literal="2067-7"
	 * @generated
	 * @ordered
	 */
	public static final int _20677_VALUE = 2;

	/**
	 * The '<em><b>20685</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20685</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20685
	 * @model literal="2068-5"
	 * @generated
	 * @ordered
	 */
	public static final int _20685_VALUE = 3;

	/**
	 * The '<em><b>20560</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20560</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20560
	 * @model literal="2056-0"
	 * @generated
	 * @ordered
	 */
	public static final int _20560_VALUE = 4;

	/**
	 * The '<em><b>20701</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20701</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20701
	 * @model literal="2070-1"
	 * @generated
	 * @ordered
	 */
	public static final int _20701_VALUE = 5;

	/**
	 * The '<em><b>20693</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20693</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20693
	 * @model literal="2069-3"
	 * @generated
	 * @ordered
	 */
	public static final int _20693_VALUE = 6;

	/**
	 * The '<em><b>20719</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20719</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20719
	 * @model literal="2071-9"
	 * @generated
	 * @ordered
	 */
	public static final int _20719_VALUE = 7;

	/**
	 * The '<em><b>20727</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20727</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20727
	 * @model literal="2072-7"
	 * @generated
	 * @ordered
	 */
	public static final int _20727_VALUE = 8;

	/**
	 * The '<em><b>20735</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20735</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20735
	 * @model literal="2073-5"
	 * @generated
	 * @ordered
	 */
	public static final int _20735_VALUE = 9;

	/**
	 * The '<em><b>20743</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20743</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20743
	 * @model literal="2074-3"
	 * @generated
	 * @ordered
	 */
	public static final int _20743_VALUE = 10;

	/**
	 * The '<em><b>20750</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20750</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20750
	 * @model literal="2075-0"
	 * @generated
	 * @ordered
	 */
	public static final int _20750_VALUE = 11;

	/**
	 * An array of all the '<em><b>Race Black Or African American Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceBlackOrAfricanAmericanMember1[] VALUES_ARRAY =
		new RaceBlackOrAfricanAmericanMember1[] {
			_20545,
			_20586,
			_20677,
			_20685,
			_20560,
			_20701,
			_20693,
			_20719,
			_20727,
			_20735,
			_20743,
			_20750,
		};

	/**
	 * A public read-only list of all the '<em><b>Race Black Or African American Member1</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceBlackOrAfricanAmericanMember1> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race Black Or African American Member1</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceBlackOrAfricanAmericanMember1 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceBlackOrAfricanAmericanMember1 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Black Or African American Member1</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceBlackOrAfricanAmericanMember1 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceBlackOrAfricanAmericanMember1 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Black Or African American Member1</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceBlackOrAfricanAmericanMember1 get(int value) {
		switch (value) {
			case _20545_VALUE: return _20545;
			case _20586_VALUE: return _20586;
			case _20677_VALUE: return _20677;
			case _20685_VALUE: return _20685;
			case _20560_VALUE: return _20560;
			case _20701_VALUE: return _20701;
			case _20693_VALUE: return _20693;
			case _20719_VALUE: return _20719;
			case _20727_VALUE: return _20727;
			case _20735_VALUE: return _20735;
			case _20743_VALUE: return _20743;
			case _20750_VALUE: return _20750;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceBlackOrAfricanAmericanMember1(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceBlackOrAfricanAmericanMember1
